﻿@{
    ViewBag.PageList = @Html.BreadCrumb().OrderBy(r => r.NodeOrder);
}

<ul class="contentHeaderNav">
    <li>
        @(Century.Web.UI.MVC.FrameworkToken.UserToken.CurrentSite.Name)&nbsp;
    </li>
    @if (ViewBag.Pagelist != null)
    {
        foreach (var item in ViewBag.PageList as IEnumerable<Century.Model.CMS.SitePage>)
        {
            <li>
                <a href="@Url.Action("Get", "PageManagement", new { id = item.Id })">@(!string.IsNullOrEmpty(item.Title) ? item.Title : item.LocalName)</a>&nbsp;
            </li>
        }
    }
    <li>
        <span class="contentHeaderNavActive" >@(!string.IsNullOrEmpty(Century.Business.Repository.PersistData.CurrentPage.Title) ? Century.Business.Repository.PersistData.CurrentPage.Title : Century.Business.Repository.PersistData.CurrentPage.LocalName)</span>
    </li>
</ul>
